package the.workshop.bu.service;

import the.workshop.bu.dto.*;
import the.workshop.bu.dto.req.CustomerAddReq;
import the.workshop.bu.dto.req.CustomerModifyReq;
import the.workshop.bu.dto.req.SalesQuantityReq;
import the.workshop.bu.entity.Customer;
import org.wisteria.framework.web.mvc.service.ISuperService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lei.liu
 * @since 2020-06-15
 */
public interface ICustomerService extends ISuperService<Customer> {

    CustomerDTO detailById(Integer customerId);

    void updateById(CustomerModifyReq req);

    void updateSalesId(CustomerSalesDTO dto);

    void updateSalesId(List<SalesQuantityReq> salesQuantityList);

    void save(CustomerAddReq req);

    void save(List<CustomerImportExcel> list);

    void moveStatus(CustomerMoveStatusDTO dto);

    List<SalesQuantityDTO> querySalesQuantity();
}
